package com.bla.controller;

import com.bla.req.LeaderOrderRequest;
import com.bla.service.LeaderOrderService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/leader/order")
public class LeaderOrderController {
    @Resource
    private LeaderOrderService leaderOrderService;
    @PostMapping("/insert")
    public String insertLeader(@RequestBody LeaderOrderRequest request){
        leaderOrderService.insertOrder(request);
        return "成功";
    }
}
